<div id="sideBar">
        <ul class="actions">
            <li><?php echo $this->Html->link(__('Galériák listázása'), array('action' => 'index'),array('id'=>'view')); ?> </li>
            <li><?php echo $this->Html->link(__('Új'), array('action' => 'add'),array('id'=>'view')) ?> </li>
            <li><?php echo $this->Html->link(__('Átnevezés'), array('action' => 'edit', $gallery['Gallery']['id']),array('id'=>'edit')); ?></li>            
            <li><?php echo $this->Form->postLink(__('Törlés'), array('action' => 'delete', $gallery['Gallery']['id']), array('id'=>'delete'), __('Are you sure you want to delete # %s?', $gallery['Gallery']['id'])); ?> </li>                	    
        </ul>
    <hr>
	<ul class="sideNav">				
		<li><?php echo $this->Html->link(__('Tartalmak listázása'), array('controller' => 'contents', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Új tartalom'), array('controller' => 'contents', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Képek listázása'), array('controller' => 'images', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Új kép feltöltése'), array('controller' => 'images', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div id="main">
<h2><?php echo h($gallery['Gallery']['name']); ?> - Galéria</h2>
	
		




<?php if (!empty($gallery['Content'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>		
		<th><?php echo __('Menu'); ?></th>		
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($gallery['Content'] as $content): ?>
		<tr>	
			<td><?php echo $content['menu']; ?></td>			
			<td class="actions">
				<?php echo $this->Html->link(__('Megnéz'), array('controller' => 'contents', 'action' => 'view', $content['id'])); ?>
				<?php echo $this->Html->link(__('Szerkesztés'), array('controller' => 'contents', 'action' => 'edit', $content['id'])); ?>
				<?php echo $this->Form->postLink(__('Törlés'), array('controller' => 'contents', 'action' => 'delete', $content['id']), null, __('Biztosan törölni szeretnéd a # %s tartalmat?', $content['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
        <?php echo $this->Html->link(__('Új tartalom'), array('controller' => 'contents', 'action' => 'add')); ?>



<?php endif; ?>





<h3><?php echo __('Képek'); ?></h3>
	<?php if (!empty($gallery['Image'])): 
            
            
            ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th></th>
		<th><?php echo __('Képe neve'); ?></th>
		
		<th class="actions"><?php echo __('Műveletek'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($gallery['Image'] as $image): ?>
		<tr>
                        <td><?php echo  $this->Html->image('uploads/images/'.$image['filename'],array('width'=>'70')); ?> </td>
			<td><?php echo $image['filename']; ?></td>			
			<td class="actions">
				<?php echo $this->Html->link(__('Megnéz'), array('controller' => 'images', 'action' => 'view', $image['id'])); ?>				
				<?php echo $this->Form->postLink(__('Törlés'), array('controller' => 'images', 'action' => 'delete', $image['id']), null, __('Are you sure you want to delete # %s?', $image['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Új kép feltöltése'), array('controller' => 'images', 'action' => 'add')); ?> </li>
		</ul>
	</div>

</div>

<div class="clear"></div>